package com.yang.proxy.dynamicproxy.myjdk;

import com.yang.proxy.ActualBuyer;
import com.yang.proxy.Buyer;
import com.yang.proxy.dynamicproxy.jdk.JDKProxy;

/**
 * @author yang
 * @version 0.1
 * @date 2019/4/12
 */
public class MyJDKProxyTest {

    public static void main(String[] args) {
        Buyer buyer = (Buyer) new JDKProxy(new ActualBuyer()).proxy();
        buyer.house();
    }
}
